package cn.edu.sdjzu.xg.eagle.service.inface;

import cn.edu.sdjzu.xg.eagle.entities.Announcement;

import java.sql.SQLException;
import java.util.List;

public interface AnnouncementService {
    String addAnnouncement(Announcement announcement) throws SQLException;
    String deleteAnnouncement(int id) throws SQLException;
    String updateAnnouncement(Announcement announcement) throws SQLException;
    Announcement findAnnouncementById(int id) throws SQLException;
    List<Announcement> findAllAnnouncements() throws SQLException;
}